Skip to content

ObserverBase class

Defined in

Namespace: System.Reactive Assembly: System.Reactive.dll Full name: System.Reactive.ObserverBase<T> Modifiers: public abstract

Summary

Abstract base class for implementations of the IObserver interface.

Applies to

netstandard2.0

Class hierarchy
classDiagram
class ObserverBase~T~
class IObserver~T~ {
    <>
}
IObserver~T~ <|.. ObserverBase~T~
class IDisposable {
    <>
}
IDisposable <|.. ObserverBase~T~

Implements: IObserver, IDisposable

Remarks

This base class enforces the grammar of observers where OnError and OnCompleted are terminal messages.

Constructors

NameSummary
.ctorCreates a new observer in a non-stopped state.

Methods

NameSummary
OnNextNotifies the observer of a new element in the sequence.
OnNextCoreImplement this method to react to the receival of a new element in the sequence.
OnErrorNotifies the observer that an exception has occurred.
OnErrorCoreImplement this method to react to the occurrence of an exception.
OnCompletedNotifies the observer of the end of the sequence.
OnCompletedCoreImplement this method to react to the end of the sequence.
DisposeDisposes the observer, causing it to transition to the stopped state.
Inherited members